<%--
  Created by IntelliJ IDEA.
  User: 23333
  Date: 2023/4/8
  Time: 15:31
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>商品修改页面</title>
</head>
<body>
<h1>商品修改页面</h1>

<form action="/commodity/alterById" method="post" enctype="multipart/form-data">
    <input type="hidden" name="id" value="${sessionScope.commodity.id}">
    <label>
        title:<input type="text" name="title" value="${sessionScope.commodity.title}"/>
    </label>
    <br>
    <label>
        image:<input type="file" name="file" value="${sessionScope.commodity.img}"/>
    </label>
    <br>
    <label>
        price:<input type="number" name="price" min="0.00" step="0.01" value="${sessionScope.commodity.price}"/>
    </label>
    <br>
    <textarea name="description"  cols="30" rows="4" placeholder="DESCRIPTION" >${sessionScope.commodity.description}</textarea>
    <br>
    <label>
        邮费:<input type="number" name="postage" value="${sessionScope.commodity.postage}">
    </label>
    <br>
    <input type="submit" value="修改">
</form>

</body>
</html>
